package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.UserDynamicPicture;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author LeXin Huang
 * @date 2021年03月25日 14:19
 */
@Mapper
public interface UserDynamicPictureMapper extends BaseMapper<UserDynamicPicture> {

    @Select("select dynamic_picture_url from user_dynamic_picture where dynamic_id = #{dynamicId}")
    List<String> selectByDynamicId(@Param("dynamicId") Integer dynamicId);

}
